<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="../books/add" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="../books/delete/{bookId}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="../books/update?bookId={bookId}" target="navTab"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="20"></th>
				<th width="120">编号</th>
				<th>名称</th>
				<th width="100">作者</th>
				<th width="150">日期</th>
				<th width="150" align="center">类型</th>
				<th width="20"></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${bookList}" var="book">
			<tr target="bookId" rel='${book.bookId}'>
				<td></td>
				<td>${book.bookId}</td>
				<td>${book.bookName}</td>
				<td>${book.bookAuthor}</td>
				<td><fmt:formatDate value="${book.createDate}" pattern="yyyy-MM-dd"/>  </td>
				<td>${book.type.typeName}</td>
				<td></td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>